
<!DOCTYPE html>
<!--[if IE 7 ]>    <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8 ]>    <html class="ie8 oldie"> <![endif]-->
<!--[if IE 9 ]>    <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html> <!--<![endif]-->

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta charset="utf-8"/>
    <meta name="description" content="">
    <meta name="author" content="">
	<meta property="wb:webmaster" content="3caf5a5b94e6991e" />

	<link rel="shortcut icon" href="/static/blog/coolblue/images/chine.ico"/>

	<title> 搜索{{keywords}} | {{g.user.name}}的博客</title>

	<style>
		div#Pagination {
			padding-left: 15px;
			width: 711px;
		}
		div.post {
			margin: 0 0 20px 0;
		}
		article.post {
			margin: 0 0 20px 0;
			padding: 0 0 24px 0;
		}
	</style>

	<link type="text/css" rel="stylesheet" href="/static/blog/coolblue/css/bootstrap.min.css"><link>
	<link rel="stylesheet" type="text/css" media="screen" href="/static/blog/coolblue/css/coolblue.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="/static/blog/coolblue/css/chine.css" />

	<script>window.jQuery || document.write('<script src="/static/blog/coolblue/js/jquery-1.7.2.min.js"><\/script>')</script>
	<script src="/static/blog/coolblue/js/scrollToTop.js"></script>
	<script src="/static/blog/coolblue/js/inputFocusOrBlur.js"></script>
	<script src="/static/blog/coolblue/js/jquery.form.js"></script>
	<script src="/static/blog/coolblue/js/bootstrap-transition.js"></script>
	<script src="/static/blog/coolblue/js/bootstrap-tooltip.js"></script>
	<script src="/static/blog/coolblue/js/bootstrap-modal.js"></script>
	<script src="/static/blog/coolblue/js/subscribe.js"></script>

	<!--[if lt IE 9]>
	    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->


	<script language="JavaScript">
		$(function(){
			$('div#Pagination a').each(function(i) {
				href = $(this).attr('href');
				$(this).attr('href', href+'?q=python')
			});
		});
	</script>

</head>
<body id="top">

		<!--header -->
<div id="header-wrap"><header>
{% include 'blog/header.html' %}
<!--/header-->
</header></div>


	<!-- content-wrap -->
	<div id="content-wrap">

	    <!-- content -->
	    <div id="content" class="clearfix">

<!-- main -->
<div id="main">

	<div class="post">
		<p id="resultCount" class="highlight">
            {% if search=='search' %}共搜索到{{total}}条结果
            {% elif search=='tag' %}标签 - 【{{tag.name}}】
            {% else %}博客分类 - 【{{category.name}}】{% endif %}
        </p>
	</div>
	<div class="indent">
	{% for a in articles %}
	    <article class="post">
	    	<h3><a href="/blog/article/{{a.id}}">{{a.title}}</a></h3>
			<p>{{ (a.content|safe|html2text)[:200] }} ...</p>
			<p><a href="/blog/article/{{a.id}}">查看全文</a></p>
		</article>
    {% endfor %}
	</div>

<!--
<div id="Pagination" class="pagination">
    {% for i in pagination %}
        {% if i==pid %}
        <span class="current">{{ i }}</span>
        {% else %}
	    <a href="/page/{{i}}" >{{i}}</a>
        {% endif %}
    {% endfor %}
	<span>...</span>
	<a href="/page/{{last_page}}" >末页 &raquo;</a>
</div>
-->

<!-- /main -->
</div>

<!-- sidebar -->
<div id="sidebar">
{% include 'blog/sidebar.html' %}
<!-- /sidebar -->
</div>

	    <!-- content -->
		</div>

	<!-- /content-out -->
	</div>


<!-- extra -->
<div id="extra-wrap"><div id="extra" class="clearfix">
{% include 'blog/extra.html' %}
<!-- /extra -->
</div></div>

<!-- footer -->
<footer>
{% include 'blog/footer.html' %}
<!-- /footer -->
</footer>

</body>
